package com.caishi.lkx.order.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration("weixinPayConfig")
@ConditionalOnProperty("weixin.pay.info.appid")
@ConfigurationProperties(prefix = "weixin.pay.info", ignoreUnknownFields = true)
@Data
public class WeixinPayConfig {
    /**
     * 微信统一下单API
     */
    protected String url = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    /**
     * 微信退款API
     */
    protected String refund = "https://api.mch.weixin.qq.com/secapi/pay/refund";
    /**
     * 微信退款查询
     */
    protected String refundquery = "https://api.mch.weixin.qq.com/pay/refundquery";

    protected String appid;
    protected String appAppid;
    protected String appAppSecret;
    protected String mchid;
    protected String signKey;
    protected String notifyUrl;
    protected String appsecret;
    protected String weCatGzhAppid;
    protected String weCatGzhSecret;
    protected String cert;
}
